package workerwithdb.dao;



import org.hibernate.HibernateException;
import org.hibernate.Session;

import autoservice.api.entitites.IUser;

public class HibernateDAOUser extends GenericDAOHibernate<IUser> {
	private static final String LOGIN = "login";
	
	public HibernateDAOUser(){
		super(IUser.class);
	}

	
	public IUser readUser(String loginUser,Session session) throws HibernateException{
		return (IUser) super.get(LOGIN, loginUser, session);
	}
	
	

}
